/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface;

import Pojo.Employees;
import java.util.List;
import org.hibernate.Session;

/**
 *
 * @author knyazev_o
 */
public interface InterfaceEmployee {
    public boolean register(Session session, Employees employees)throws Exception;
    public List<Employees> getAll(Session session)throws Exception;
    public Employees getByIdEmployee(Session session, Long id)throws Exception;
    public Employees getByLogin(Session session, String login)throws Exception;
    public Employees getByLoginDiferent(Session session, Long id ,String login)throws Exception;
    public boolean update(Session session, Employees employees)throws Exception;    
}
